package top.tagao.study03_Map;

import java.lang.reflect.Field;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

/**
 * @author fu-xiao-liu
 * @Date 2022/4/16 10:10
 */
public class study_01_HashMap {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException, InterruptedException {
        A a = new A();
        Thread.sleep(1000000);
        HashMap set = new HashMap<>();
        set.put("A","B");
        set.put("c","d");
        set.put("e","f");

        Field entrySet = HashMap.class.getDeclaredField("entrySet");
        entrySet.setAccessible(true);
        Object o = entrySet.get(set);
        System.out.println(o);
    }
}
class A{
    int i = 1;
    public A() {
        i = 10;
    }

    @Override
    public String toString() {
        return "A{" +
                "i=" + i +
                '}';
    }


}
